package com.seckill.dis.goods.persistence;

import com.seckill.dis.common.domain.SeckillGoods;
import org.apache.ibatis.annotations.*;

/**
 * goods
 */
@Mapper
public interface SeckillMapper {

    /**
     * 新增秒杀活动
     * @param seckillGoods
     * @return
     */
    @Insert("INSERT INTO seckill_goods(id, goods_id, seckill_price, stock_count, start_date, end_date) values(#{id}, #{goodsId}, #{seckillPrice}, #{stockCount}, #{startDate}, #{endDate})")
    Integer addGoods(SeckillGoods seckillGoods);

}
